const express = require('express')
const app = express()
const cors = require('cors')
    // const multer = require('multer')
    // app.use(multer({dest:'./upload/'}))
const path = require('path')
app.use(express.static(path.join(__dirname, 'upload')))
app.use(cors())
app.use(express.urlencoded({ extends: false }))
const uploadRouter = require('./router/upload')
app.use('/api', uploadRouter)
app.listen(8080, () => {
    console.log('8080启动中...');
})